package com.eduhzy.ttw.commonsdk.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Date:2018/7/16
 * Time:10:06
 * @author xubo
 */
public class ClassTeacherData implements Parcelable {
    private String id;
    private String userId;
    private String classId;
    private String subjectId;
    private String subjectName;
    private String lastUpdateTime;
    private String createTime;
    private String status;
    private String className;
    private String userName;
    private String realName;
    private boolean bzr;
    private String tempAvatar;
    private boolean delete;
    private boolean select;
    private String bzrgh;

    public String getBzrgh() {
        return bzrgh;
    }

    public void setBzrgh(String bzrgh) {
        this.bzrgh = bzrgh;
    }

    public boolean isDelete() {
        return delete;
    }

    public void setDelete(boolean delete) {
        this.delete = delete;
    }

    public boolean isSelect() {
        return select;
    }

    public void setSelect(boolean select) {
        this.select = select;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public String getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(String subjectId) {
        this.subjectId = subjectId;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public String getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(String lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public boolean isBzr() {
        return bzr;
    }

    public void setBzr(boolean bzr) {
        bzr = bzr;
    }

    public String getTempAvatar() {
        return tempAvatar;
    }

    public void setTempAvatar(String tempAvatar) {
        this.tempAvatar = tempAvatar;
    }

    public ClassTeacherData() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.userId);
        dest.writeString(this.classId);
        dest.writeString(this.subjectId);
        dest.writeString(this.subjectName);
        dest.writeString(this.lastUpdateTime);
        dest.writeString(this.createTime);
        dest.writeString(this.status);
        dest.writeString(this.className);
        dest.writeString(this.userName);
        dest.writeString(this.realName);
        dest.writeByte(this.bzr ? (byte) 1 : (byte) 0);
        dest.writeString(this.tempAvatar);
        dest.writeByte(this.delete ? (byte) 1 : (byte) 0);
        dest.writeByte(this.select ? (byte) 1 : (byte) 0);
    }

    protected ClassTeacherData(Parcel in) {
        this.id = in.readString();
        this.userId = in.readString();
        this.classId = in.readString();
        this.subjectId = in.readString();
        this.subjectName = in.readString();
        this.lastUpdateTime = in.readString();
        this.createTime = in.readString();
        this.status = in.readString();
        this.className = in.readString();
        this.userName = in.readString();
        this.realName = in.readString();
        this.bzr = in.readByte() != 0;
        this.tempAvatar = in.readString();
        this.delete = in.readByte() != 0;
        this.select = in.readByte() != 0;
    }

    public static final Creator<ClassTeacherData> CREATOR = new Creator<ClassTeacherData>() {
        @Override
        public ClassTeacherData createFromParcel(Parcel source) {
            return new ClassTeacherData(source);
        }

        @Override
        public ClassTeacherData[] newArray(int size) {
            return new ClassTeacherData[size];
        }
    };
}